package com.wzq.tcpTio.showcase;

import org.tio.http.common.HttpConfig;
import org.tio.http.server.HttpServerStarter;
import org.tio.http.server.handler.DefaultHttpRequestHandler;
import org.tio.utils.jfinal.P;

/**
 * @author zlh
 */
public class DoTioStarter {

	public static void main(String[] args) throws Exception {
		P.use("app.properties");

		HttpConfig httpConfig = new HttpConfig(P.getInt("http.port", 8181), false);
		new HttpServerStarter(httpConfig, new DefaultHttpRequestHandler(httpConfig, DoTioStarter.class.getPackage().getName())).start();
	}
}
